<!--
 * @Descripttion: 
 * @version: 1.0
 * @Author: Ankang
 * @Date: 2021-06-07 19:56:02
 * @LastEditors: Ankang
 * @LastEditTime: 2021-06-07 21:27:00
-->
<template>
  <div>
    <van-search
      v-model="value"
      :shape="shape"
      :placeholder="placeholder"
      @focus="sear"
    />
  </div>
</template>

<script>
import Vue from "vue";
import { Search } from "vant";
Vue.use(Search);
export default {
  data() {
    return {
      value: "",
      shape: "round",
      placeholder: "手机",
    };
  },
  methods: {
    sear() {
      this.$router.push({
        path: "/search",
      });
    },
  },
};
</script>

<style lang='stylus' scoped></style>